home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / WINDOWS / MSWLOG12.ARJ / FACT.LG < prev    next >
Text File  |  1990-06-11  |  73b  |  5 lines

  1. to fact :n
  2. if equalp :n 1 [output 1]
  3. output (fact (:n - 1)) * :n
  4. end
  5.